<script type="text/javascript">
$(document).ready(function() {
    $('#navigation_autocomplete').yourlabsAutocomplete({
        url: '{% url navigation_autocomplete %}',
        choiceSelector: 'a',
        placeholder: 'Escriba aquí su búsqueda...',
    }).input.bind('selectChoice', function(e, choice, autocomplete) {
        document.location.href = choice.attr('href');
    });
});
</script>
